<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" href="style.css" />
  <title>Form Validator</title>
</head>

<body>
  <div class="container">
    <form id="form" class="form">
      <h2>注册</h2>
      <div class="form-control">
        <label for="username">用户名</label>
        <input type="text" id="username" placeholder="请输入用户名" />
        <small>错误提示</small>
      </div>
      <div class="form-control">
        <label for="email">邮箱</label>
        <input type="text" id="email" placeholder="请输入邮箱" />
        <small>错误提示</small>
      </div>
      <div class="form-control">
        <label for="password">密码</label>
        <input type="password" id="password" placeholder="请输入密码" />
        <small>错误提示</small>
      </div>
      <div class="form-control">
        <label for="password2">确认密码</label>
        <input type="password" id="password2" placeholder="请输入确认密码" />
        <small>错误提示</small>
      </div>
      <button>提交</button>
    </form>
  </div>
</body>
<script src="./reg_hw.js"></script>

</html>